import unittest
from BeautifulReport import BeautifulReport
from config.config import REPORT_PATH,CASE_PATH
from time import strftime
suite = unittest.defaultTestLoader.discover(CASE_PATH,pattern='test_*.py')
now = strftime('%Y%m%d%H%M%S')
BeautifulReport(suite).report(
    report_dir=REPORT_PATH,
    description='自动化测试报告',
    filename='crm-report-{}'.format(now)
)